package com.tsd.base.dao;

import com.tsd.base.entity.BasePrintDesignItem;
import com.tsd.base.entity.BasePrintDesignItemExt;
import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：BasePrintDesignItemMapper
 *
 * @author Hillpool
 * @date 2022/10/14 18:06:30
 */
public interface BasePrintDesignItemMapper {

    BasePrintDesignItem selectByPrimaryKey(Long id);

    BasePrintDesignItemExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(BasePrintDesignItem record);

    int insertSelective(BasePrintDesignItem record);

    int insertList(@Param("list") List<BasePrintDesignItemExt> record);

    int updateByPrimaryKey(BasePrintDesignItem record);

    int updateByPrimaryKeySelective(BasePrintDesignItem record);

    int updateList(@Param("list") List<BasePrintDesignItemExt> record);

    List<BasePrintDesignItemExt> selectByEntity(BasePrintDesignItemExt record);

    List<BasePrintDesignItemExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BasePrintDesignItemExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BasePrintDesignItemExt> selectByParams(@Param("params") Map<String, Object> params);

    int deleteLogicBySidList(BatchDeleteLogicVo logicVo);

    int deleteLogicByParentList(BatchDeleteLogicVo logicVo);

    Integer checkDuplicatedObj(BasePrintDesignItemExt record);

    int selectMaxSn(BasePrintDesignItemExt record);
}